< previous page page_465 next page >

Page 465
Chapter 14
Surfaces
This chapter covers the broad topic of surfaces in three dimensions. The chapter begins by describing data structures you can use to store, manipulate, and display simple surfaces. Using these structures, you can manage many kinds of simple surfaces, including surfaces that contain incomplete data.
The chapter then covers a few specialized techniques you can use to manipulate simple surfaces. Fractal techniques allow you to turn simple surfaces into interesting, irregular terrains. The Hi-Lo and Z-Order algorithms use the special characteristics of simple surfaces to remove hidden areas from the display.
Some programs make use of a list of control points that determine only the overall shape of the surface. The exact nature of the surface is not critical as long as the surface generally follows the control points. In cases like this, you need to use other methods for managing your data. The next few sections explain ways you can create smooth parametric surfaces using Bezier curves and B-splines in three dimensions.
The final sections in the chapter describe surfaces of transformation. By applying the three-dimensional transformations described in Chapter 13, Three-Dimensional Transformations, to a curve, you can create all sorts of strange and interesting surfaces.
Simple Surfaces
Often in mathematics, you think of a surface as a function that returns a Z value for each X and Y coordinate in a region of interest. Many of the viewing routines described in previous chapters are oriented so that the Y axis gives the viewing ''up" direction. To be consistent, this chapter considers surfaces defined by functions that return a Y value for each X and Z coordinate in a region. To translate a function from a system that gives Z as a function of X and Y, simply reverse the roles of Y and Z.
For each X and Z value, a simple surface can have at most one Y value. Figure 14.1 shows a simple surface drawn with the coordinate axes. Simple surfaces include objects such as

 
< previous page page_465 next page >